
import React from 'react';
import {
  Switch,
  Route
} from 'react-router-dom';

import PersonalTaskTpl from './personal_task_tpl';
import PersonalInfoTpl from './personal_info_tpl';
import CourseRecordTpl from './course_record_tpl';
import ScheduleTpl from './schedule_tpl';

export const personalContainer = () => {
  return <Switch>
    <Route path='/personal/task' component={PersonalTaskTpl} />
    <Route path='/personal/info' component={PersonalInfoTpl} />
    <Route path='/personal/course/record' component={CourseRecordTpl} />
    <Route path='/personal/schedule/:periodId/:isSignIn' component={ScheduleTpl} />
  </Switch>
}
